package com.google.android.gms.drive.metadata;

import com.google.android.gms.internal.hm;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

public abstract class a<T> implements MetadataField<T> {
    private final String JH;
    private final Set<String> JI;
    private final Set<String> JJ;
    private final int JK;

    protected a(String str, int i) {
        this.JH = (String) hm.b((Object) str, (Object) "fieldName");
        this.JI = Collections.singleton(str);
        this.JJ = Collections.emptySet();
        this.JK = i;
    }

    protected a(String str, Collection<String> collection, Collection<String> collection2, int i) {
        this.JH = (String) hm.b((Object) str, (Object) "fieldName");
        this.JI = Collections.unmodifiableSet(new HashSet(collection));
        this.JJ = Collections.unmodifiableSet(new HashSet(collection2));
        this.JK = i;
    }

    public final String getName() {
        return this.JH;
    }

    public String toString() {
        return this.JH;
    }
}
